package com.jk.item;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * 商品服务启动类
 * @author cuiP
 * Created by JK on 2017/6/15.
 */
public class ItemServiceApplication {
    private static final Logger LOGGER = LoggerFactory.getLogger(ItemServiceApplication.class);

    public static void main(String[] args) throws IOException {
        LOGGER.info(">>>>> e3-item-rpc-service 正在启动 <<<<<");
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:spring/spring-all.xml");
        context.start();
        LOGGER.info(">>>>> e3-item-rpc-service 启动完成 <<<<<");

        // 为保证服务一直开着，利用输入流的阻塞来模拟
        System.in.read();
    }
}
